package cc.decat.escript.builtin;

import cc.decat.escript.object.ESBuiltinObject;
import cc.decat.escript.object.ESConstObjects;
import cc.decat.escript.object.ESObject;

import java.util.List;

public class ESPrintlnBuiltinObject extends ESBuiltinObject {
    @Override
    public ESObject call(List<ESObject> args) {
        for(ESObject arg : args) {
            System.out.print(arg.str().getStr());
            System.out.print(" ");
        }
        System.out.println();
        return ESConstObjects.NULL;
    }
}
